package String3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2024-11-14
 * Time: 23:14
 */
public class demo5 {
    public static void main(String[] args) {
        StringBuilder stringBuilder = new StringBuilder("hello");
        stringBuilder.delete(1,3);
        System.out.println(stringBuilder.toString());

        stringBuilder.replace(1,3,"xxx");
        System.out.println(stringBuilder.toString());

        stringBuilder.reverse();
        System.out.println(stringBuilder.toString());

    }
}
